package com.suse.service.community.mapper;

import com.suse.service.community.entity.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 评论数据访问接口
 * </p>
 *
 * @author 辜玉彬
 * @since 2022-08-31 20:18
 */
@Mapper
public interface CommentMapper {

    List<Comment> selectListByEntity(@Param("entityType") int entityType, @Param("entityId") int entityId, @Param("offset") int offset, @Param("limit") int limit);

    int selectTotalByEntity(@Param("entityType") int entityType, @Param("entityId") int entityId);

    int insert(Comment comment);

}
